// Decompiled by DJ v3.10.10.93 Copyright 2007 Atanas Neshkov  Date: 18/07/2011 0:34:10
// Home Page: http://members.fortunecity.com/neshkov/dj.html  http://www.neshkov.com/dj.html - Check often for new version!
// Decompiler options: packimports(3) 
// Source File Name:   MenuServiceImpl.java

package com.directorio.modelo.service;

import com.directorio.modelo.dao.MenuDao;
import com.directorio.modelo.service.MenuService;
import java.util.List;

public class MenuServiceImpl
    implements MenuService
{

    public MenuServiceImpl()
    {
    }

    public void setMenuDao(MenuDao menuDao)
    {
        this.menuDao = menuDao;
    }

    public List obtenerMenu(int id)
        throws Exception
    {
        try
        {
            return menuDao.getMenuFromUsuario(id);
        }
        catch(Exception ex)
        {
            ex.printStackTrace();
        }
        return null;
    }

    public List obtenerSubMenu(int tipo, int menu)
        throws Exception
    {
        try
        {
            return menuDao.getSubMenuFromUsuarioAndMenu(tipo, menu);
        }
        catch(Exception ex)
        {
            ex.printStackTrace();
        }
        return null;
    }

    protected MenuDao menuDao;
}